<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
    <title>Document</title>
</head>

<body>
    <div id="box">
        <input type="radio" name="gender" value="男" v-model="sex">
        <label for="boy">男</label>
        <input type="radio" name="gender" value="女" v-model="sex">
        <label for="girl">女</label>
        <p>你选择的是:{{sex}}</p>
    </div>
    <script>
        new Vue({
            el: '#box',
            data: {
                sex: ''
            }
        })
    </script>
</body>

</html>